﻿angular.module('Caltech').directive('caltechHeader', function () {
    'use strict';

    return {
        restrict: 'E',
        replace: true,
        transclude: true,
        
        scope: {
            page: '=',
            title: '@'            
        },
        templateUrl: 'Scripts/app/views/_partials/header.html',
        link: function ($scope) {
            $scope.printTitle = $scope.title;
            $scope.page = $scope.page || 1;
        }
    }
});
